<template>
    <div class="dialog" v-show="isShow">
        <h2>确定要删除吗？</h2>
        <div>
            <button @click="$emit('closeFun')">取消</button>
            <button @click="$emit('delRequest')">确定</button>
        </div>
    </div>
</template>

<script>
export default {
    props:['isShow']
}
</script>

<style lang="scss">
    .dialog{
        width:200px;
        height: 200px;
        border:1px solid gray;
        position:absolute;
        top:50%;
        left:50%;
        transform: translate(-50%,-50%);
    }
</style>

